﻿namespace YourLastOptionsDialog.Controls
{
    /// <summary>
    /// Describes an implementation of validation capabilities that takes an input string
    /// and returns a validation result.
    /// </summary>
    public interface IValidator
    {
        /// <summary>
        /// Validates the specified input and returns a <see cref="ValidationResult"/> with the outcome of the validation.
        /// </summary>
        /// <param name="input">The input value to validate.</param>
        /// <returns>The result of the validation.</returns>
        ValidationResult Validate(string input);
    }
}